"""
redis连接器

"""
import os
import redis

from dotenv import load_dotenv

load_dotenv('env.ini', encoding='utf-8')
REDIS_HOST = os.getenv('REDIS_HOST')
REDIS_PORT = os.getenv('REDIS_PORT')
REDIS_PASSWD = os.getenv('REDIS_PASSWD')

# celery任务锁
redis_for_celery = redis.StrictRedis(host=REDIS_HOST, password=REDIS_PASSWD)
